#include "bridge_factory.hpp"
#include "base/thread/thread_worker.hpp"
#include "rtmp_to_flv.hpp"
namespace mms{
    std::shared_ptr<MediaBridge> BridgeFactory::create_bridge(ThreadWorker* worker, const std::string& id, const std::string& domain_name, const std::string& app_name, const std::string& stream_name)
    {
        if (id == "rtmp-flv") {
            return std::make_shared<RtmpToFlv>(worker, domain_name, app_name, stream_name);
        } 
        return nullptr;
    }



}